#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void main() 
{ int a, b, c,temp;
	printf("请输入三个数：\n");
	scanf("%d%d%d", &a, &b, &c);
	if (a > b)
	{
		temp = a;
		a = b;
		b = temp;    //bac
	}
	if (a > c)
	{
		temp = a;
		a = c;
		c = temp;
	}             // cab
	if (b > c)
	{
		temp = b;
		b = c;
		c = temp; // cba
	}
	printf("由小到大排序:%d,%d,%d,\n", a, b, c);

}